package miiteen.demo.web.beans;

import com.fasterxml.jackson.annotation.JsonFormat;
import miiteen.common.utils.FieldMeta;
import miiteen.sys.base.bean.BasePo;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CustomsBaseInfo extends BasePo {

    public CustomsBaseInfo() {
        this.commentInfoList = new ArrayList<CommentInfo>();
    }

    @FieldMeta(name = "动态ID")
    private String id;

    @FieldMeta(name = "主题")
    private String subject;

    @FieldMeta(name = "动态类别id")
    private String classId;

    @FieldMeta(name = "媒体类型id")
    private String mediaTypeId;

    @FieldMeta(name = "加急等级")
    private String emergency;

    @FieldMeta(name = "保密等级")
    private String secret;

    @FieldMeta(name = "内容")
    private String content;

    @FieldMeta(name = "起草人ID")
    private String draftPersonId;

    @FieldMeta(name = "起草人姓名")
    private String draftPersonName;

    @FieldMeta(name = "起草人单位ID")
    private String draftDeptId;

    @FieldMeta(name = "起草人单位名称")
    private String draftDeptName;

    @FieldMeta(name = "发送时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendDate;

    @FieldMeta(name = "排序")
    private int sort;

    @FieldMeta(name = "状态标记")
    private int stateFlage;

    @FieldMeta(name = "全局排序")
    private String globalSort;

    @FieldMeta(name = "参与拟稿单位")
    private String workDept;

    /**
     * 辅助字段
     */
    @FieldMeta(name = "动态类别名称")
    private String className;

    @FieldMeta(name = "批示内容集合")
    private List commentInfoList;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public String getMediaTypeId() {
        return mediaTypeId;
    }

    public void setMediaTypeId(String mediaTypeId) {
        this.mediaTypeId = mediaTypeId;
    }

    public String getEmergency() {
        return emergency;
    }

    public void setEmergency(String emergency) {
        this.emergency = emergency;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getDraftPersonId() {
        return draftPersonId;
    }

    public void setDraftPersonId(String draftPersonId) {
        this.draftPersonId = draftPersonId;
    }

    public String getDraftPersonName() {
        return draftPersonName;
    }

    public void setDraftPersonName(String draftPersonName) {
        this.draftPersonName = draftPersonName;
    }

    public String getDraftDeptId() {
        return draftDeptId;
    }

    public void setDraftDeptId(String draftDeptId) {
        this.draftDeptId = draftDeptId;
    }

    public String getDraftDeptName() {
        return draftDeptName;
    }

    public void setDraftDeptName(String draftDeptName) {
        this.draftDeptName = draftDeptName;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getSendDate() {
        return sendDate;
    }

    public void setSendDate(Date sendDate) {
        this.sendDate = sendDate;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getStateFlage() {
        return stateFlage;
    }

    public void setStateFlage(int stateFlage) {
        this.stateFlage = stateFlage;
    }

    public String getGlobalSort() {
        return globalSort;
    }

    public void setGlobalSort(String globalSort) {
        this.globalSort = globalSort;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public List getCommentInfoList() {
        return commentInfoList;
    }

    public void setCommentInfoList(List commentInfoList) {
        this.commentInfoList = commentInfoList;
    }

    public String getWorkDept() {
        return workDept;
    }

    public void setWorkDept(String workDept) {
        this.workDept = workDept;
    }
}
